//
//  EvationTableCell.m
//  WhereToTravel
//
//  Created by dlios on 15/10/22.
//  Copyright © 2015年 zhoushengmin. All rights reserved.
//

#import "EvationTableCell.h"
#define W self.contentView.frame.size.width/375
#define H self.contentView.frame.size.height/220
@implementation EvationTableCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView {
    self.leftImageView = [[UIImageView alloc]init];
    self.rightLabel = [[UILabel alloc]init];
    self.rightLabel.font = [UIFont boldSystemFontOfSize:20];
    self.rightLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.leftImageView];
    [self.contentView addSubview:self.rightLabel];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.leftImageView.frame = CGRectMake(W * 0, H * 0, W * 375, H * 220);
    self.rightLabel.frame = CGRectMake(W * 20, H * 180, W * 140, H * 30);
}
@end
